package com.yuhanginfo.modules.web.dao;

import java.util.List;
import java.util.Map;

import com.yuhanginfo.common.persistence.CrudDao;
import com.yuhanginfo.common.persistence.annotation.MyBatisDao;
import com.yuhanginfo.modules.web.entity.WebAddress;

/**
 * 地址管理DAO接口
 * @author lvls
 * @version 2017-10-24
 */
@MyBatisDao
public interface AddressDao extends CrudDao<WebAddress> {

	List<WebAddress> selectByUserId(Integer userId);

	int saveAddress(WebAddress address);

	int updateAddress(WebAddress address);

	WebAddress getDefAddress(WebAddress address);

	List<WebAddress> selectUserId(String string);

	void updateDeauft(WebAddress address);

	void deleteAddress(String id);

	void saveMyAddress(WebAddress address);

	void updateMyAddress(WebAddress address);

	WebAddress getNewAddress(String userId);

	List<WebAddress> selectPhoneUserId(String id);

	List<WebAddress> selectPhoneList(Map<String, Object> map);

	WebAddress selectByAddressId(String receiveAreaId);
	
}